 
package ltd.newbee.mall.dao;

import ltd.newbee.mall.entity.Order;
import ltd.newbee.mall.util.PageQueryUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {
    int deleteByPrimaryKey(Long orderId);
    int insert(Order record);
    int insertSelective(Order record);
    Order selectByPrimaryKey(Long orderId);
    Order selectByOrderNo(String orderNo);
    int updateByPrimaryKeySelective(Order record);
    int updateByPrimaryKey(Order record);
    List<Order> findNewBeeMallOrderList(PageQueryUtil pageUtil);
    int getTotalNewBeeMallOrders(PageQueryUtil pageUtil);
    List<Order> selectByPrimaryKeys(@Param("orderIds") List<Long> orderIds);
    int checkOut(@Param("orderIds") List<Long> orderIds);
    int closeOrder(@Param("orderIds") List<Long> orderIds, @Param("orderStatus") int orderStatus);
    int checkDone(@Param("orderIds") List<Long> asList);
}